import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class TestMoMoLogger
{
	private Log log = LogFactory.getLog(TestMoMoLogger.class);
	
	public TestMoMoLogger()
	{
		log.debug("hi");
		createThread("MoMoStructureLog");
	}
	
	public void createThread(final String toLog) {
		Thread t1 = new Thread()
		{
			public void run()
			{
				testMainLogger(toLog);
			}
		};
		t1.start();
	}
	
	public void testMainLogger(String toLog)
	{
		Log log = LogFactory.getLog(toLog);
		if ( log.isTraceEnabled() )
			log.trace("Trace");
		if ( log.isDebugEnabled() )
			log.debug("Debug");
		if ( log.isInfoEnabled() )
			log.info("Info");
		if ( log.isWarnEnabled() )
			log.warn("Warn");
		if ( log.isErrorEnabled() )
			log.error("Error");
		if ( log.isFatalEnabled() )
			log.fatal("Fatal");
	}
	
	public static void main(String args[])
	{
		TestMoMoLogger t = new TestMoMoLogger();
	}
}
